package com.app.service.impl;

import com.app.mapper.AppInfoMapper;
import com.app.pojo.AppInfo;
import com.app.service.AppInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: App_SSM
 * @description:
 * @author: Mr.peng
 * @create: 2020-06-11 18:11
 **/
@Service
public class AppInfoServiceImpl implements AppInfoService {
    @Resource
    AppInfoMapper infoMapper;

    @Override
    public List<AppInfo> getlist(int curr,int pagesize,AppInfo appInfo) {
        int currs=(curr-1)*pagesize;
        List<AppInfo> appInfoList=infoMapper.getlist(currs,pagesize,appInfo);

        return appInfoList;
    }

    @Override
    public int getcount(String name,AppInfo appInfo) {
        return infoMapper.getcount(name,appInfo);
    }

}
